package ooday05;
/** Getter/Setter 的测试类 */
public class GetterSetterDemo {
    public static void main(String[] args) {
            Point p = new Point();
            // p.x = 100; //编译错误, 该变量的为私有化变量, 无法引用及赋值
            p.setX(100);
            p.setY(200);
            System.out.println(p.getX()+","+p.getY());
    }
}
